<template>
  <div>
    <mt-header title="账号设置" style="background-color: white; color: black">
      <div @click="$router.go(-1)" slot="left">
        <mt-button icon="back" style="color: black"></mt-button>
      </div>
    </mt-header>

    <div class="aboutContent">
      <div class="logoBox">
        <img
          class="logoimg"
          src="../../assets/imageW/logo.png"
          mode="widthFix"
          alt=""
        />
      </div>
      <div class="banben">Ver sion5.6.0</div>
    </div>

    <div class="infoBox">
      <div class="infoList" @click="exit">注销账号</div>
      <div class="infoList" @click="exit">退出登录</div>
    </div>
  </div>
</template>

<script>
import { MessageBox } from "mint-ui";
import { Toast } from "mint-ui";
export default {
  data() {
    return {};
  },
  methods: {
    exit() {
      MessageBox({
        title: "提示",
        message: "您是否要退出登录？",
        confirmButtonText: "确定",
        cancleButtonText: "取消",
        showCancelButton: true,
      }).then((res) => {
        if (res == "confirm") {
          // 退出登录状态 返回我的页面
           this.$router.push("/index/my");
           this.$store.commit('Mphone','')
           this.$store.commit('Muser','')
        } 
      });
    },
  },
};
</script>

<style lang="scss" scoped>
body {
  background-color: #f7f8fa;
}
.aboutContent {
  padding: 1vh 3vh 2vh;
  background-color: white;
  box-sizing: border-box;
  margin-bottom: 20px;
}
.logoBox {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  margin: 60px auto 30px;
}
.logoimg {
  width: 64px;
  height: 64px;
}
.logoimg image {
  width: 100%;
}
.banben {
  text-align: center;
  color: black;
  font-size: 6px;
}
// .infoBox{
// // display: flex;
// }
.infoList {
  padding: 10px 0;
  width: 100%;
  background-color: white;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
</style>